package org.example.seckill.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author woopsion
 * @date 2025-06-29
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Documented 
@Constraint(     
        validatedBy = {IsMobileValidator.class} ) 
public @interface isMobile {     
    String message() default "手机号码出错";
    boolean required() default true;
    Class<?>[] groups() default {}; 
    Class<? extends Payload>[] payload() default {};

}